<template>
    <div class="back-btn" @click="handleBack">
        <el-icon><ArrowLeft /></el-icon>
        <span>返回</span>
    </div>
</template>

<script setup>
import { ArrowLeft } from '@element-plus/icons-vue';
import { useRouter } from 'vue-router';

const router = useRouter();

const handleBack = () => {
    router.back();
};
</script>

<style scoped>
@import '../assets/css/header/back-btn.css';
</style>


